import request from '@/utils/request'

// 查询审批步骤列表
export function listExamineSetup(query) {
  return request({
    url: '/examine/examineSetup/list',
    method: 'get',
    params: query
  })
}

// 查询审批步骤详细
export function getExamineSetup(setupId) {
  return request({
    url: '/examine/examineSetup/' + setupId,
    method: 'get'
  })
}

// 新增审批步骤
export function addExamineSetup(data) {
  return request({
    url: '/examine/examineSetup',
    method: 'post',
    data: data
  })
}

// 修改审批步骤
export function updateExamineSetup(data) {
  return request({
    url: '/examine/examineSetup',
    method: 'put',
    data: data
  })
}

// 删除审批步骤
export function delExamineSetup(setupId) {
  return request({
    url: '/examine/examineSetup/' + setupId,
    method: 'delete'
  })
}
